<include file="Public/head" />
<include file="Public/menu" />
<include file="Orders/menu" />
<!-- 详情页 -->
<div class="indexBox">
    <div class="boxTitle">订单列表</div>
    <div id="list">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
            <tbody>
        <volist name="list" id="v">
            <switch name="v.type">
                <case value="0">
                    <tr>
                        <th>日期</th>
                        <th>订单号</th>
                        <th>买家</th>
                        <th>酒店房型</th>
                        <th>时间</th>
                        <th>价值</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <td width="90px" align="center">{:date("Y/m/d", $v["order_time"])}</td>
                        <td width="120px" align="center">{$v.oid}</td>
                        <td width="80px" align="center">{$v.nickname}</td>
                        <td width="220px" align="left">{$v.hotel} - {$v.roomtype}</td>
                        <td width="170px" align="center">{$v.checkin|date="Y/m/d",###} - {$v.checkout|date="Y/m/d",###}</td>
                        <td width="60px" align="center">{$v.price}</td>
                        <td width="60px" align="center"><eq name="v.status" value="0">未支付<else />已支付</eq></td>
                        <td width="130px"  align="center">
                            <switch name="v.comment_times">
                                <case value="0">未评 | </case>
                                <case value="1"><a href="{:U('Comment/add')}&type={$v.type}&id={$v.id}&uid=1">回复</a></case>
                                <case value="2">已回</case>
                                <default />出错了
                            </switch>
                            <a href="{:U('Orders/edit')}&type={$v.type}&id={$v.id}">编辑</a> | <a href="{:U('Orders/del')}&type={$v.type}&id={$v.id}">删除</a>
                        </td>
                    </tr>
                </case>
                <case value="1">
                    <tr>
                        <th>日期</th>
                        <th>订单号</th>
                        <th>买家</th>
                        <th>景点</th>
                        <th>成人</th>
                        <th>儿童</th>
                        <th>游园时间</th>
                        <th>价值</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <td width="90px" align="center">{:date("Y/m/d", $v["order_time"])}</td>
                        <td width="120px" align="center">{$v.oid}</td>
                        <td width="80px" align="center">{$v.nickname}</td>
                        <td width="200px" align="center">{$v.senic}</td>
                        <td width="50px" align="center">{$v.adult_nums}</td>
                        <td width="50px" align="center">{$v.child_nums}</td>
                        <td width="90px" align="center">{$v.day|date="Y/m/d",###}</td>
                        <td width="60px" align="center">{$v.price}</td>
                        <td width="60px" align="center"><eq name="v.status" value="0">未支付<else />已支付</eq></td>
                        <td width="130px"  align="center">
                            <switch name="v.comment_times">
                                <case value="0">未评 | </case>
                                <case value="1"><a href="{:U('Comment/add')}&type={$v.type}&id={$v.id}&uid=1">回复</a></case>
                                <case value="2">已回</case>
                                <default />出错了
                            </switch>
                            <a href="{:U('Orders/edit')}&type={$v.type}&id={$v.id}">编辑</a> | <a href="{:U('Orders/del')}&type={$v.type}&id={$v.id}">删除</a>
                        </td>
                    </tr>
                </case>
                <case value="2">
                    <tr>
                        <th>日期</th>
                        <th>订单号</th>
                        <th>买家</th>
                        <th>景点</th>
                        <th>日期</th>
                        <th>数量</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <td rowspan="3" width="90px" align="center">{:date("Y/m/d", $v["order_time"])}</td>
                        <td rowspan="3" width="120px" align="center">{$v.oid}</td>
                        <td rowspan="3" width="80px" align="center">{$v.nickname}</td>
                        <td width="300px" align="center">{$v.senic}</td>
                        <td width="100px" align="center">{$v.day|date="Y/m/d",###}</td>
                        <td width="50px" align="center">{$v.nums}</td>
                        <td rowspan="3" width="60px" align="center"><eq name="v.status" value="0">未支付<else />已支付</eq></td>
                        <td rowspan="3" width="130px"  align="center">
                            <switch name="v.comment_times">
                                <case value="0">未评 | </case>
                                <case value="1"><a href="{:U('Comment/add')}&type={$v.type}&id={$v.id}&uid=1">回复</a></case>
                                <case value="2">已回</case>
                                <default />出错了
                            </switch>
                            <a href="{:U('Orders/edit')}&type={$v.type}&id={$v.id}">编辑</a> | <a href="{:U('Orders/del')}&type={$v.type}&id={$v.id}">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <th>酒店房型</th>
                        <th>总人数</th>
                        <th>价值</th>
                    </tr>
                    <tr>
                        <td align="center">{$v.hotel} - {$v.roomtype}</td>
                        <td align="center">{$v.nums}</td>
                        <td align="center">{$v.price}</td>
                    </tr>
                </case>
                <deafult />
                    憋嗦了，赶紧告诉管理员出问题了！
            </switch>
        </volist>
            </tbody>
        </table>
    </div>
    <div class="clear"></div>
    <div class="pager">
        总计 {$count} 个记录，共 {$pages} 页，当前第 {$nowpage} 页
        <if condition="$pages != 0">{$page}</if>
    </div>
    <script type="text/javascript">
        $(function(){
            $(".pager>div").css("display", "inline-block");
        });
    </script>
</div>
<include file="Public/footer" />